package com.hao.wms.service.impl;

import com.hao.wms.dao.IDepotDao;
import com.hao.wms.domain.Depot;
import com.hao.wms.query.PageResult;
import com.hao.wms.query.QueryObject;
import com.hao.wms.service.IDepotService;

import java.util.List;

public class DepotServiceImpl implements IDepotService {
	private IDepotDao dao;
	

	public void setDao(IDepotDao dao) {
		this.dao = dao;
	}

	@Override
	public void save(Depot depot) {
		dao.save(depot);

	}

	@Override
	public void update(Depot depot) {
		dao.update(depot);

	}

	@Override
	public void delete(Depot depot) {
		dao.delete(depot);

	}

	@Override
	public Depot get(Long id) {
		return dao.get(id);
	}

	@Override
	public List<Depot> list() {
		return dao.list();
	}

	@Override
	public PageResult query(QueryObject qo) {
		return dao.query(qo);
	}
	
	

}
